package com.wingsofts.gankclient.ui.activity

import android.databinding.DataBindingUtil
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.wingsofts.gankclient.R
import com.wingsofts.gankclient.databinding.ActivityImageBinding

@Route(path = "/activity/ImageActivity")
class ImageActivity : BaseBindingActivity<ActivityImageBinding>() {

    override fun initView() {
        mBinding.url = intent.getStringExtra(IMG)
        mBinding.root.setOnClickListener {
            supportFinishAfterTransition()
        }
    }

    override fun createDataBinding(savedInstanceState: Bundle?): ActivityImageBinding {
        return DataBindingUtil.setContentView(this, R.layout.activity_image)
    }

    companion object {
        val IMG = "IMG"
    }
}
